package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100);not null;comment: 用户名"`
	Password string `gorm:"type:varchar(100);not null;comment: 密码"`
}

type Shop struct {
	gorm.Model
	ShopNo string  `gorm:"type:varchar(100);not null;comment: 商品编号"`
	Desc   string  `gorm:"type:varchar(500);not null;comment: 商品信息"`
	Price  float64 `gorm:"type:decimal(10,2);not null;comment: 价格"`
	UserId int     `gorm:"type:int(11);not null;comment: 用户ID"`
}
